package com.lin.service.translatesetup;

import com.lin.common.error.CustomRuntimeException;
import com.lin.controller.req.AddTranslateSetupReqMsg;
import com.lin.po.TranslateSetup;

import java.util.List;

public interface TranslateSetupService {

    boolean translateFlag(Long customerId, Integer characters);

    void updateTranslateList(Long customerId, Integer characters);

    /**
     * 获取redis上的内容，否则从数据库获取
     *
     * @return
     */
    List<TranslateSetup> translateSetups(Long customerId);

    Integer updateStatus(Long orderNo);

    Integer save(AddTranslateSetupReqMsg reqMsg) throws CustomRuntimeException;

    Integer del(Long customerId, Long customerRelId);
}
